/*
 * Copyright (c) 2025. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.portalcenter.application.action.dept.update.status.flow;

import cn.hallele.ms.portalcenter.application.bo.DeptBO;
import cn.hallele.ms.portalcenter.application.das.DeptBDDas;
import cn.hallele.ms.starter.web.framework.node.ServiceFlow;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * hallele_ms_portalcenter
 *
 * @author anle5
 * @since 2025/1/1 16:35
 */
@Slf4j
@LiteflowComponent
public class UpdateDeptStatusFlow extends ServiceFlow {
    @Autowired
    private DeptBDDas deptBDDas;

    @Override
    public void process() throws Exception {
        DeptBO deptBO = this.getRequestData();
        deptBDDas.updateDeptStatus(deptBO.getId(), deptBO.getStatus());
    }
}
